<%--
  Created by IntelliJ IDEA.
  User: lijun
  Date: 2019/12/19
  Time: 16:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>蓝源Eloan-P2P平台(系统管理平台)</title>

    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <script type="text/javascript" src="js/jquery-1.12.4.js" ></script>
    <script type="text/javascript" src="js/bootstrap.min.js" ></script>

    <script type="text/javascript">
        $(function(){
            $("#addCompanyBankBtn").click(function(){
                $("#editForm").resetForm();
                $("#companyBankModal1").modal("show");
            });
            $(".edit_Btn").click(function(){
                var me=$(this);
                var json = me.data("json");
                $("#editForm input[name=id]").val(json.id);
                $("#editForm input[name=bankName]").val(json.bankName);
                $("#editForm input[name=accountName]").val(json.accountName);
                $("#editForm input[name=accountNumber]").val(json.accountNumber);
                $("#editForm input[name=bankForkName]").val(json.bankForkName);
                $("#companyBankModal").modal("show");
            });

            $('#pagination').twbsPagination({
                totalPages : 1||1,
                startPage : 1,
                visiblePages : 5,
                first : "首页",
                prev : "上一页",
                next : "下一页",
                last : "最后一页",
                onPageClick : function(event, page) {
                    $("#currentPage").val(page);
                    $("#searchForm").submit();
                }
            });

            $("#query").click(function(){
                $("[name=currentPage]").val("1");
                $("#searchForm").submit();
            });

            /**/

            $("#saveBtn").click(function(){
                $("#editForm").submit();
            });



            for(var k in SITE_BANK_TYPE_NAME_MAP){
                var v=SITE_BANK_TYPE_NAME_MAP[k];
                $("<option value='"+k+"'>"+v+"</option>").appendTo($("#bankType"));
            }
        });
    </script>
</head>

<body class="">
<div class="container">
    <div class="navbar cm-navbar">
        <img class="logo" alt="Brand" src="/images/logo.png">
        <span class="pageTitle">&nbsp;</span>
        <ul class="nav navbar-nav navbar-right cm-navbar-nav">
            <li>
                <p class="navbar-text text-info"></p>
            </li>
            <li><a href="">安全退出</a></li>
            <li><a href="">个人设置</a></li>
        </ul>
    </div>		<div class="row">
    <div class="col-sm-3">
        <ul id="menu" class="list-group">

            <li class="list-group-item">
                <a href="#" data-toggle="collapse" data-target="#permissionmanage_detail"><span>安全管理</span></a>
                <ul class="in" id="permissionmanage_detail">
                    <li class="systemDictionary"><a href="./systemDictionary_list.do"><span>系统数据字典目录</span></a></li>
                    <li class="systemDictionaryItem"><a href="./systemDictionaryItem_list.do"><span>系统数据字典明细</span></a></li>
                    <li class="ipLog"><a href="./ipLog.do"><span>登录历史</span></a></li>
                </ul>
            </li>
            <li class="list-group-item">
                <a href="#" data-toggle="collapse" data-target="#auditmanage_detail">
                    <span>审核项目</span>
                </a>
                <ul class="in" id="auditmanage_detail">
                    <li class="realAuth"><a href="./realAuth.do">实名认证审核</a></li>
                    <li class="vedioAuth"><a href="./vedioAuth.do">视频认证审核</a></li>
                    <li class="userFileAuth"><a href="./userFileAuth.do">认证材料审核</a></li>
                    <li class="bidrequest_publishaudit_list"><a href="./bidrequest_publishaudit_list.do">发标前审核</a></li>
                    <li class="bidrequest_audit1_list"><a href="./bidrequest_audit1_list.do">满标一审</a></li>
                    <li class="bidrequest_audit2_list"><a href="./bidrequest_audit2_list.do">满标二审</a></li>
                    <li class="rechargeOffline"><a href="./rechargeOffline.do">线下充值审核</a></li>
                    <li class="moneyWithdraw"><a href="./moneyWithdraw.do">提现审核</a></li>
                </ul>
            </li>
            <li class="list-group-item">
                <a href="#" data-toggle="collapse" data-target="#systemmanage_detail">
                    <span>平台管理</span>
                </a>
                <ul class="in" id="systemmanage_detail">
                    <li class="companyBank active"><a href="companyBank_list.jsp">平台账号管理</a></li>
                    <li><a href="./real_auth_list.do">系统账户流水</a></li>
                </ul>
            </li>
        </ul>

        <script type="text/javascript">
            $(".in li.companyBank").addClass("active");
        </script>
    </div>
    <div class="col-sm-9">
        <div class="page-header">
            <h3>平台账户管理</h3>
        </div>
        <div class="row">
            <!-- 提交分页的表单 -->
            <form id="searchForm" class="form-inline" method="post" action="./companyBank_list.do">
                <input type="hidden" name="currentPage" value="">
                <div class="form-group">
                    <button id="query" class="btn btn-success"><i class="icon-search"></i> 查询</button>
                    <a href="javascript:void(-1);" class="btn btn-success" id="addCompanyBankBtn">添加平台账户</a>
                </div>
            </form>
        </div>
        <div class="row">
            <table class="table">
                <thead>
                <tr>
                    <th>银行</th>
                    <th>开户人</th>
                    <th>账号</th>
                    <th>开户行</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><div class="bank bank_4"></div></td>
                    <td>BC</td>
                    <td>12345678</td>
                    <td>长沙支行</td>
                    <td>
                        <a href="javascript:void(-1);" class="edit_Btn" data-json="{&quot;bankForkName&quot;:&quot;长沙支行&quot;,&quot;accountName&quot;:&quot;BC&quot;,&quot;bankName&quot;:&quot;4&quot;,&quot;id&quot;:1,&quot;accountNumber&quot;:&quot;12345678&quot;}">修改</a> &nbsp;
                    </td>
                </tr>
                <tr>
                    <td><div class="bank bank_1"></div></td>
                    <td>hjl</td>
                    <td>1123</td>
                    <td>1233</td>
                    <td>
                        <a href="javascript:void(-1);" class="edit_Btn" data-json="{&quot;bankForkName&quot;:&quot;1233&quot;,&quot;accountName&quot;:&quot;hjl&quot;,&quot;bankName&quot;:&quot;1&quot;,&quot;id&quot;:2,&quot;accountNumber&quot;:&quot;1123&quot;}">修改</a> &nbsp;
                    </td>
                </tr>
                </tbody>
            </table>

            <div style="text-align: center;">
                <ul id="pagination" class="pagination"><li class="first disabled"><a href="#">首页</a></li><li class="prev disabled"><a href="#">上一页</a></li><li class="page active"><a href="#">1</a></li><li class="next disabled"><a href="#">下一页</a></li><li class="last disabled"><a href="#">最后一页</a></li></ul>
            </div>
        </div>
    </div>
</div>
</div>
<div id="companyBankModal" class="modal" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title">编辑/增加</h4>
            </div>
            <div class="modal-body">
                <form id="editForm" class="form-horizontal" method="post" action="./companyBank_update.do" style="margin: -3px 118px">
                    <input type="hidden" name="id" value="">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">选择银行</label>
                        <div class="col-sm-6">
                            <select id="bankType" class="form-control" autocomplete="off" name="bankName">
                                <option value="1">中国工商银行</option><option value="2">中国农业银行</option><option value="3">中国建设银行</option><option value="4">中国招商银行</option><option value="5">中国民生银行</option><option value="6">中国交通银行</option><option value="7">中国银行</option><option value="8">中信银行</option><option value="9">广发银行</option><option value="10">兴业银行</option><option value="11">华夏银行</option><option value="12">上海银行</option><option value="13">北京银行</option><option value="14">光大银行</option><option value="15">平安银行</option><option value="16">中国信合</option><option value="17">广州银行</option><option value="18">南京银行</option><option value="19">深圳发展银行</option><option value="20">中国邮政储蓄银行</option></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">开户人</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" name="accountName">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">账号</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" name="accountNumber">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">开户行</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" name="bankForkName">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-success" id="saveBtn" aria-hidden="true">保存</a>
                <a href="javascript:void(0);" class="btn" data-dismiss="modal" aria-hidden="true">关闭</a>
            </div>
        </div>
    </div>
</div>
<!--<div id="companyBankModal1" class="modal in" tabindex="-1" role="dialog" aria-hidden="true" style="display: block;"><div class="modal-backdrop  in" style="height: 1508px;"></div>
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
        <h4 class="modal-title">编辑/增加</h4>
      </div>
      <div class="modal-body">
           <form id="editForm" class="form-horizontal" method="post" action="./companyBank_update.do" style="margin: -3px 118px">
            <input type="hidden" name="id" value="1">
               <div class="form-group">
                <label class="col-sm-3 control-label">选择银行</label>
                <div class="col-sm-6">
                       <select id="bankType" class="form-control" autocomplete="off" name="bankName">
                       <option value="1">中国工商银行</option><option value="2">中国农业银行</option><option value="3">中国建设银行</option><option value="4">中国招商银行</option><option value="5">中国民生银行</option><option value="6">中国交通银行</option><option value="7">中国银行</option><option value="8">中信银行</option><option value="9">广发银行</option><option value="10">兴业银行</option><option value="11">华夏银行</option><option value="12">上海银行</option><option value="13">北京银行</option><option value="14">光大银行</option><option value="15">平安银行</option><option value="16">中国信合</option><option value="17">广州银行</option><option value="18">南京银行</option><option value="19">深圳发展银行</option><option value="20">中国邮政储蓄银行</option></select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开户人</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" name="accountName">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">账号</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" name="accountNumber">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开户行</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" name="bankForkName">
                </div>
            </div>
       </form>
      </div>
      <div class="modal-footer">
          <a href="javascript:void(0);" class="btn btn-success" id="saveBtn" aria-hidden="true">保存</a>
        <a href="javascript:void(0);" class="btn" data-dismiss="modal" aria-hidden="true">关闭</a>
      </div>
    </div>
  </div>
</div>-->

</body></html>
